package com.mt.grand.singleton.hungry;

import com.mt.grand.singleton.dto.SingletonInstance;

/**
 * 饿汉式单例模式
 */
public class HungrySingleton {

    private static SingletonInstance singletonInstance = new SingletonInstance("我是单例");

    public static SingletonInstance getInstance(){
        return singletonInstance;
    }
}